update record in sql using c